package main;

import java.util.ArrayList;
import java.util.Random;

public class Player {

	String name;
	int score;
	ArrayList <RPSEnum> moves;
	
	public Player(String name,ArrayList <RPSEnum> moves ) {
		this.name = name;
		this.score =0;
		this.moves = moves;
	}
	
	

	public Player(String name ) {
		this.name = name;
		this.score =0;
		this.moves = new ArrayList<RPSEnum>();
		
		for (int i = 0; i < 20; i++) {
			
			int alea = new Random().nextInt(3);
			
			if (alea == 0)
				this.moves.add(RPSEnum.PAPER);
			if (alea == 1)
				this.moves.add(RPSEnum.SCISSORS);
			if (alea == 2)
				this.moves.add(RPSEnum.ROCK);
		}
		
		
	}
	
	RPSEnum getNextMove()
	{
		return null;
	}
	
	public String getName() {
		return name;
	}

	public int getScore() {
		return score;
	}
	
	public int getSizeOfMoves() {
		return moves.size();
	}



	public void setScore(int score) {
		this.score = score;
	}

}
